object TestPar {
  def main(args: Array[String]): Unit = {

    val result1 = (0 to 10).map(_ => Thread.currentThread.getName)
    val result2 = (0 to 10).par.map(_ => Thread.currentThread.getName)

    println(result1)
    println(result2)
  }
}
